package com.markerhub.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.markerhub.entity.BuyNum;
import com.markerhub.entity.GoodsInfo;
import com.markerhub.mapper.GoodsInfoMapper;
import com.markerhub.service.GoodsCommentService;
import com.markerhub.service.GoodsInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jsx on 2023/2/13
 **/
@Service
public class GoodsInfoServiceImpl extends ServiceImpl<GoodsInfoMapper, GoodsInfo> implements GoodsInfoService {

    @Override
    public List<BuyNum> countMaxTenNum() {
        return this.baseMapper.selectTenBuyNum();
    }

    @Override
    public int deleteInfoList(String[] ids) {
        return this.baseMapper.updateByInfoList(ids);
    }
}
